﻿<UserControl x:Class="IngressApp.editEmployees"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="550" d:DesignWidth="800">
    <Grid Margin="8">
    <Grid Margin="8">
    	<Grid.ColumnDefinitions>
    		<ColumnDefinition Width="0.521*"/>
            <ColumnDefinition Width="0.479*"/>
        </Grid.ColumnDefinitions>
        <Grid Grid.Column="0" Name="stkSearch" Margin="8" Background="#FF333333">
               
                    <TextBlock Foreground="#FFBABABA" VerticalAlignment="Top" HorizontalAlignment="Center" FontSize="18.667"><Run Language="es-mx" Text="Registro de "/><Run Text="Empleados"/>
			
			</TextBlock>
            <ListView d:LayoutOverrides="Width, Height" Margin="20,50,20,20" Name="lstSearch" ItemsSource="{Binding}" IsSynchronizedWithCurrentItem="True" >
                <ListView.View>
                    <GridView AllowsColumnReorder="True">
                        <GridViewColumn DisplayMemberBinding="{Binding Path=IdEmpleado}" Width="0" />
                        <GridViewColumn Header="Nombres" Width="100" DisplayMemberBinding = "{Binding Path=Nombre}">
                           
                        </GridViewColumn>
                        <GridViewColumn Header="Ape. Paterno" Width="100" DisplayMemberBinding = "{Binding Path=ApellidoPaterno}">
                          
                        </GridViewColumn>
                        <GridViewColumn Header="Ape. Materno" Width="100" DisplayMemberBinding = "{Binding Path=ApellidoMaterno}">
                           
                        </GridViewColumn>
                    </GridView>
                </ListView.View>
            </ListView>
            <Button x:Name="btnAgregar" Content="+" Width="40" HorizontalContentAlignment="Center" Click="btnAgregar_Click" HorizontalAlignment="Left" Template="{DynamicResource btnCorner}" Foreground="#FF818181" FontSize="32" Height="40" FontWeight="Bold" VerticalAlignment="Top"/>
        </Grid>
        <StackPanel Grid.Column="1" Name="stkView" Margin="8" Background="#FF333333">
            <StackPanel x:Name="Alta" Orientation="Vertical" Margin="50,0">
            	<Label Content="Nombre" Foreground="#FFBABABA"/>
            	<TextBox x:Name="txtNombre" Text="{Binding Nombre}"/>
            	<Label Content="Apellido Paterno" Foreground="#FFBABABA"/>
            	<TextBox x:Name="txtApPaterno" Text="{Binding ApellidoPaterno}"/>
            	<Label Content="Apellido materno" Foreground="#FFBABABA"/>
            	<TextBox x:Name="txtApMaterno" Text="{Binding ApellidoMaterno}"/>
            	<TextBox x:Name="txtSelectedItem" Text="{Binding IdEmpleado}" Visibility="Collapsed"/>
            	<Label Content="Foto" Foreground="#FFBABABA"/>
            	<TextBox x:Name="txtApFoto" Text="{Binding Foto}"/>
            </StackPanel>
            <Button Height="25" Name="btnAdd" Content="Agregar" Click="btnAdd_Click" Visibility="Collapsed"></Button>
            <StackPanel Margin="0,30" HorizontalAlignment="Center" VerticalAlignment="Center">
            	<TextBlock Text="Huella Digital" Foreground="#FFBABABA"/>
            	<Button Height="25" Content="Capturar" Click="btnHuella_Click" Template="{DynamicResource btnNormal}" Width="100" HorizontalAlignment="Left" Foreground="White" FontStyle="Italic" FontWeight="Bold"/>
                
            </StackPanel>
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="0">
            	<Button Height="60" x:Name="btnUpdate" Content="Guardar" Click="btnUpdate_Click" Template="{DynamicResource btnNormal}" Width="120" Foreground="White" FontStyle="Italic" FontWeight="Bold"/>
            	<Button Height="60" x:Name="btnDelete" Content="Eliminar" Click="btnDelete_Click" Width="120" Template="{DynamicResource btnNormal}" Margin="5,0,0,0" Foreground="White" FontStyle="Italic" FontWeight="Bold"/>
            
            </StackPanel>
        </StackPanel>
    </Grid>
        <Grid x:Name="grdAdd" d:IsHidden="True" Visibility="Collapsed">
        	<Grid.Background>
        		<RadialGradientBrush>
        			<GradientStop Color="#BF666666" Offset="1"/>
        			<GradientStop Color="#BFFFFFFF"/>
        		</RadialGradientBrush>
        	</Grid.Background>
        	<Grid Margin="0" Width="400" Height="280">
        		<Grid Margin="0">
        			<Rectangle Width="400" Height="280" RadiusX="5" RadiusY="5">
        				<Rectangle.Stroke>
        					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        						<GradientStop Color="#FFE2E2E2" Offset="0"/>
        						<GradientStop Color="White" Offset="0.013"/>
        						<GradientStop Color="#FF585858" Offset="1"/>
        						<GradientStop Color="#FFB1B1B1" Offset="0.017"/>
        					</LinearGradientBrush>
        				</Rectangle.Stroke>
        				<Rectangle.Fill>
        					<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
        						<GradientStop Color="#FF9F9F9F" Offset="1"/>
        						<GradientStop Color="#FFD6D6D6"/>
        					</LinearGradientBrush>
        				</Rectangle.Fill>
        			</Rectangle>
        		</Grid>
            
        		<StackPanel Margin="50,20" >
        			
					<Label Content="Nombre"></Label>
		            <TextBox Name="txtNombre0"></TextBox>
		            <Label Content="Apellido Paterno"></Label>
		            <TextBox Name="txtApPaterno0" ></TextBox>
		            <Label Content="Apellido materno"></Label>
		            <TextBox Name="txtApMaterno0" ></TextBox>
		            <Label Content="Foto"></Label>
		            <TextBox Name="txtApFoto0"></TextBox>
		            <StackPanel HorizontalAlignment="Right" Orientation="Horizontal" Width="200" Margin="0,20,0,0">
		            	<Button Content="Cancelar" Width="80" Margin="0,0,40,0" Click="btnCancel_Click" />
		            	<Button Content="Agregar" Click="btnAdd_Click" Width="80" />
            
		            </StackPanel>
            
        		</StackPanel>
            
        	</Grid>
            
        </Grid>
    </Grid>
</UserControl>
